//
//  CommonDefine.h
//  LoveHealth
//
//  Created by 陈永坤 on 14-9-21.
//  Copyright (c) 2014年 lanou. All rights reserved.
//

#ifndef LoveHealth_CommonDefine_h
#define LoveHealth_CommonDefine_h

#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 \
green:((float)((rgbValue & 0xFF00) >> 8))/255.0 \
blue:((float)(rgbValue & 0xFF))/255.0 \
alpha:1.0]

#define UIColorCommon   UIColorFromRGB(0x00bb9c)
#define UIColorBtn    UIColorFromRGB(0xa9b7b7)
#define UIColorDDMenuSelected  UIColorFromRGB(0xCCD1D9)
#define UIColorDDMenuTableViewCell UIColorFromRGB(0xF5F7FA)
//[UIColor colorWithRed:((float)((0x00bb9c & 0xFF0000) >> 16))/255.0 \
green:((float)((0x00bb9c & 0xFF00) >> 8))/255.0 \
blue:((float)(0x00bb9c & 0xFF))/255.0 \
alpha:1.0]

#define KLoginUserInfo @"userInfo"
#define kLoginCode  @"code"
#define kLoginRefresh_token @"refresh_token"
#define kLoginAccess_token @"access_token"
#define kLoginImageUrl @"avatar"
#define kloginImage @"image"
#define kLoginAccount @"account"


#define kNetErrorMessage @"查询出错,请重试!"
#define kPlaceholderImage [UIImage imageNamed:@"loadingImg.jpg"]
#endif
